package com.lanyou.cook.entity.kettle;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "R_JOBENTRY")
public class KettleJobEntry {

	private long id;
	private KettleJobEntryType type;
	
	@Id
	@Column(name="ID_JOBENTRY")
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name = "ID_JOBENTRY_TYPE")
	public KettleJobEntryType getType() {
		return type;
	}

	public void setType(KettleJobEntryType type) {
		this.type = type;
	}

}
